#include "..\..\TYPES.H"

PALETTEENTRY sprite_col1[16] = {
  {   0,   0,   0, 1 }, {   0,   0,   0, 1 }, {  64,  64,  64, 1 }, { 128, 128, 128, 1 },
  { 160, 160, 160, 1 }, { 224, 224, 224, 1 }, { 224,   0,   0, 1 }, { 128,   0,   0, 1 },
  { 224, 160,   0, 1 }, { 192,  96,   0, 1 }, {  64,  64, 224, 1 }, {   0,   0, 160, 1 },
  {   0, 224, 160, 1 }, {   0, 192,   0, 1 }, { 224, 192, 128, 1 }, { 128,  64,  32, 1 }
};
PALETTEENTRY sprite_col2[16] = {
  {   0,   0,   0, 1 }, {   0,   0,   0, 1 }, {  64,  64,  64, 1 }, { 128, 128, 128, 1 },
  { 160, 160, 160, 1 }, { 224, 224, 224, 1 }, { 224,   0,   0, 1 }, { 128,   0,   0, 1 },
  { 224, 160,   0, 1 }, { 192,  96,   0, 1 }, {  64,  64, 224, 1 }, {   0,   0, 160, 1 },
  { 224, 224, 224, 1 }, { 224, 224,   0, 1 }, { 224, 192, 128, 1 }, { 128,  64,  32, 1 }
};
PALETTEENTRY* sprite_color[2] = {
  sprite_col1,
  sprite_col2
};
PALETTEENTRY ascii_col[16] = {
  {   0,   0,   0, 1 }, { 224, 224, 224, 1 }, { 160, 160, 160, 1 }, {   0,   0,  32, 1 },
  {   0,   0, 224, 1 }, { 160,   0,   0, 1 }, {   0,   0,   0, 1 }, {   0,   0,   0, 1 },
  {   0,   0,   0, 1 }, {   0,   0,   0, 1 }, {   0,   0,   0, 1 }, {   0,   0,   0, 1 },
  {   0,   0,   0, 1 }, {   0,   0,   0, 1 }, {   0,   0,   0, 1 }, {   0,   0,   0, 1 }
};
PALETTEENTRY init_col[64] = {
  {   0,   0,   0, 1 }, {  96, 128, 224, 1 }, { 128, 160, 224, 1 }, { 160, 192, 224, 1 },
  { 192, 192, 224, 1 }, {  64,  96, 224, 1 }, {  64,  96, 224, 1 }, {  64,  96, 224, 1 },
  {  64,  96, 224, 1 }, { 192, 192, 224, 1 }, { 192, 192, 224, 1 }, { 192, 192, 224, 1 },
  { 192, 192, 224, 1 }, {  64,  96, 224, 1 }, { 240, 240, 240, 1 }, { 240, 240, 240, 1 },
  {   0,   0,   0, 1 }, {   0, 224, 224, 1 }, { 224, 224,   0, 1 }, {  32,   0, 224, 1 },
  { 128,  96,   0, 1 }, { 192, 160,   0, 1 }, {   0, 224,   0, 1 }, {   0, 128,   0, 1 },
  { 224,  32,   0, 1 }, { 128,  32,   0, 1 }, { 224, 224, 224, 1 }, { 192, 160, 224, 1 },
  { 128,  64, 160, 1 }, {  96,  32,  96, 1 }, { 224,  32, 160, 1 }, {  32,  32,   0, 1 },
  {   0,   0,   0, 1 }, {   0,   0,   0, 1 }, {  64,  64,  64, 1 }, { 128, 128, 128, 1 },
  { 160, 160, 160, 1 }, { 224, 224, 224, 1 }, { 224,   0,   0, 1 }, { 128,   0,   0, 1 },
  { 224, 160,   0, 1 }, { 192,  96,   0, 1 }, {  64,  64, 224, 1 }, {   0,   0, 160, 1 },
  {   0, 224, 160, 1 }, {   0, 192,   0, 1 }, { 224, 192, 128, 1 }, { 128,  64,  32, 1 },
  {   0,   0,   0, 1 }, { 224, 224, 224, 1 }, { 160, 160, 160, 1 }, {   0,   0,  32, 1 },
  {   0,   0, 224, 1 }, { 160,   0,   0, 1 }, {   0,   0,   0, 1 }, {   0,   0,   0, 1 },
  {   0,   0,   0, 1 }, {   0,   0,   0, 1 }, {   0,   0,   0, 1 }, {   0,   0,   0, 1 },
  {   0,   0,   0, 1 }, {   0,   0,   0, 1 }, {   0,   0,   0, 1 }, {   0,   0,   0, 1 }
};
PALETTEENTRY lpnowA[16] = {
  {   0,   0,   0, 1 }, {   0, 224, 224, 1 }, { 224, 224,   0, 1 }, {  32,   0, 224, 1 },
  { 128,  96,   0, 1 }, { 192, 160,   0, 1 }, {   0, 224,   0, 1 }, {   0, 128,   0, 1 },
  { 224,  32,   0, 1 }, { 128,  32,   0, 1 }, { 224, 224, 224, 1 }, { 192, 160, 224, 1 },
  { 128,  64, 160, 1 }, {  96,  32,  96, 1 }, { 224,  32, 160, 1 }, {  32,  32,   0, 1 }
};
PALETTEENTRY lpnowB[16] = {
  {   0,   0,   0, 1 }, {   0, 224, 192, 1 }, { 224, 224,   0, 1 }, {  32,   0, 192, 1 },
  { 128,  96,   0, 1 }, { 192, 160,   0, 1 }, {   0, 224,   0, 1 }, {   0, 128,   0, 1 },
  { 224,  32,   0, 1 }, { 128,  32,   0, 1 }, { 224, 224, 192, 1 }, { 192, 160, 192, 1 },
  { 128,  64, 128, 1 }, {  96,  32,  64, 1 }, { 224,  32, 128, 1 }, {  32,  32,   0, 1 }
};
PALETTEENTRY lpnowC[16] = {
  {   0,   0,   0, 1 }, {   0, 192, 192, 1 }, { 224, 192,   0, 1 }, {  32,   0, 192, 1 },
  { 128,  64,   0, 1 }, { 192, 128,   0, 1 }, {   0, 192,   0, 1 }, {   0,  96,   0, 1 },
  { 224,   0,   0, 1 }, { 128,   0,   0, 1 }, { 224, 192, 192, 1 }, { 192, 128, 192, 1 },
  { 128,  32, 128, 1 }, {  96,   0,  64, 1 }, { 224,   0, 128, 1 }, {  32,   0,   0, 1 }
};
PALETTEENTRY lpnowD[16] = {
  {   0,   0,   0, 1 }, {   0, 160, 192, 1 }, { 224, 160,   0, 1 }, {  32,   0, 192, 1 },
  { 128,  32,   0, 1 }, { 192,  96,   0, 1 }, {   0, 160,   0, 1 }, {   0,  64,   0, 1 },
  { 224,   0,   0, 1 }, { 128,   0,   0, 1 }, { 224, 160, 192, 1 }, { 192,  96, 192, 1 },
  { 128,   0, 128, 1 }, {  96,   0,  64, 1 }, { 224,   0, 128, 1 }, {  32,   0,   0, 1 }
};
PALETTEENTRY lpnowE[16] = {
  {   0,   0,   0, 1 }, {   0, 160, 160, 1 }, { 224, 160,   0, 1 }, {  32,   0, 160, 1 },
  { 128,  32,   0, 1 }, { 192,  96,   0, 1 }, {   0, 160,   0, 1 }, {   0,  64,   0, 1 },
  { 224,   0,   0, 1 }, { 128,   0,   0, 1 }, { 224, 160, 160, 1 }, { 192,  96, 160, 1 },
  { 128,   0,  96, 1 }, {  96,   0,  32, 1 }, { 224,   0,  96, 1 }, {  32,   0,   0, 1 }
};
PALETTEENTRY lpnowF[16] = {
  {   0,   0,   0, 1 }, {   0, 128, 160, 1 }, { 192, 128,   0, 1 }, {   0,   0, 160, 1 },
  {  96,   0,   0, 1 }, { 160,  64,   0, 1 }, {   0, 128,   0, 1 }, {   0,  32,   0, 1 },
  { 192,   0,   0, 1 }, {  96,   0,   0, 1 }, { 192, 128, 160, 1 }, { 160,  64, 160, 1 },
  {  96,   0,  96, 1 }, {  64,   0,  32, 1 }, { 192,   0,  96, 1 }, {   0,   0,   0, 1 }
};
PALETTEENTRY lpnowG[16] = {
  {   0,   0,   0, 1 }, {   0,  96, 128, 1 }, { 192,  96,   0, 1 }, {   0,   0, 128, 1 },
  {  96,   0,   0, 1 }, { 160,  32,   0, 1 }, {   0,  96,   0, 1 }, {   0,   0,   0, 1 },
  { 192,   0,   0, 1 }, {  96,   0,   0, 1 }, { 192,  96, 128, 1 }, { 160,  32, 128, 1 },
  {  96,   0,  64, 1 }, {  64,   0,   0, 1 }, { 192,   0,  64, 1 }, {   0,   0,   0, 1 }
};
PALETTEENTRY lpnowH[16] = {
  {   0,   0,   0, 1 }, {   0,  64,  96, 1 }, { 192,  64,   0, 1 }, {   0,   0,  96, 1 },
  {  96,   0,   0, 1 }, { 160,   0,   0, 1 }, {   0,  64,   0, 1 }, {   0,   0,   0, 1 },
  { 192,   0,   0, 1 }, {  96,   0,   0, 1 }, { 192,  64,  96, 1 }, { 160,   0,  96, 1 },
  {  96,   0,  32, 1 }, {  64,   0,   0, 1 }, { 192,   0,  32, 1 }, {   0,   0,   0, 1 }
};
PALETTEENTRY lpnowI[16] = {
  {   0,   0,   0, 1 }, {   0,  64,  96, 1 }, { 160,  64,   0, 1 }, {   0,   0,  96, 1 },
  {  64,   0,   0, 1 }, { 128,   0,   0, 1 }, {   0,  64,   0, 1 }, {   0,   0,   0, 1 },
  { 160,   0,   0, 1 }, {  64,   0,   0, 1 }, { 160,  64,  96, 1 }, { 128,   0,  96, 1 },
  {  64,   0,  32, 1 }, {  32,   0,   0, 1 }, { 160,   0,  32, 1 }, {   0,   0,   0, 1 }
};
PALETTEENTRY lpnowJ[16] = {
  {   0,   0,   0, 1 }, {   0,  64,  96, 1 }, { 128,  64,   0, 1 }, {   0,   0,  96, 1 },
  {  32,   0,   0, 1 }, {  96,   0,   0, 1 }, {   0,  64,   0, 1 }, {   0,   0,   0, 1 },
  { 128,   0,   0, 1 }, {  32,   0,   0, 1 }, { 128,  64,  96, 1 }, {  96,   0,  96, 1 },
  {  32,   0,  32, 1 }, {   0,   0,   0, 1 }, { 128,   0,  32, 1 }, {   0,   0,   0, 1 }
};
PALETTEENTRY lpnowK[16] = {
  {   0,   0,   0, 1 }, {   0,  64,  96, 1 }, {  96,  64,   0, 1 }, {   0,   0,  96, 1 },
  {   0,   0,   0, 1 }, {  64,   0,   0, 1 }, {   0,  64,   0, 1 }, {   0,   0,   0, 1 },
  {  96,   0,   0, 1 }, {   0,   0,   0, 1 }, {  96,  64,  96, 1 }, {  64,   0,  96, 1 },
  {   0,   0,  32, 1 }, {   0,   0,   0, 1 }, {  96,   0,  32, 1 }, {   0,   0,   0, 1 }
};
PALETTEENTRY lpnowL[16] = {
  {   0,   0,   0, 1 }, {   0,  96,  96, 1 }, {  96,  96,   0, 1 }, {   0,   0,  96, 1 },
  {   0,   0,   0, 1 }, {  64,  32,  32, 1 }, {   0,  64,  64, 1 }, {   0,   0,  32, 1 },
  {  96,   0,  32, 1 }, {   0,   0,   0, 1 }, {  96,  32, 128, 1 }, {  64,   0,  96, 1 },
  {   0,   0,  32, 1 }, {   0,   0,   0, 1 }, {  96,   0,  64, 1 }, {   0,   0,   0, 1 }
};
PALETTEENTRY lpnowM[16] = {
  {   0,   0,   0, 1 }, {   0, 128,  96, 1 }, {  64, 128,   0, 1 }, {   0,   0,  64, 1 },
  {   0,  32,  32, 1 }, {  64,  64,  32, 1 }, {   0,  64,  96, 1 }, {   0,  32,  64, 1 },
  {  96,   0,  64, 1 }, {   0,   0,   0, 1 }, {  96,  32, 160, 1 }, {  64,   0, 128, 1 },
  {   0,   0,  32, 1 }, {   0,   0,   0, 1 }, {  96,   0,  96, 1 }, {   0,   0,   0, 1 }
};
PALETTEENTRY lpnowN[16] = {
  {   0,   0,   0, 1 }, {   0, 160,  96, 1 }, {  64, 128,   0, 1 }, {   0,   0,  64, 1 },
  {   0,  64,   0, 1 }, {  64,  96,  32, 1 }, {   0,  96, 128, 1 }, {   0,  32,  96, 1 },
  {  96,   0,  64, 1 }, {   0,   0,  32, 1 }, {  96,   0, 192, 1 }, {  64,   0, 128, 1 },
  {   0,   0,  32, 1 }, {   0,   0,   0, 1 }, {  96,   0, 128, 1 }, {   0,   0,   0, 1 }
};
PALETTEENTRY lpnowO[16] = {
  {   0,   0,   0, 1 }, {   0, 192,  96, 1 }, {  64, 160,   0, 1 }, {   0,   0,  64, 1 },
  {   0,  64,   0, 1 }, {  64, 128,  32, 1 }, {   0,  96, 160, 1 }, {   0,  32, 128, 1 },
  {  96,   0,  96, 1 }, {   0,   0,  32, 1 }, {  96,   0, 224, 1 }, {  64,   0, 160, 1 },
  {   0,   0,  32, 1 }, {   0,   0,   0, 1 }, {  96,   0, 160, 1 }, {   0,   0,   0, 1 }
};
PALETTEENTRY lpnowP[16] = {
  {   0,   0,   0, 1 }, {   0, 192,  96, 1 }, {  64, 160,   0, 1 }, {   0,   0,  64, 1 },
  {   0,  64,   0, 1 }, {  64, 128,  32, 1 }, {   0,  96, 192, 1 }, {   0,  32, 128, 1 },
  {  96,   0,  96, 1 }, {   0,   0,  32, 1 }, { 128,   0, 224, 1 }, {  64,   0, 160, 1 },
  {   0,   0,  64, 1 }, {   0,   0,  32, 1 }, {  96,   0, 192, 1 }, {   0,   0,   0, 1 }
};
PALETTEENTRY lpnowQ[16] = {
  {   0,   0,   0, 1 }, {   0, 224,  96, 1 }, {  64, 160,   0, 1 }, {   0,   0,  64, 1 },
  {   0,  64,   0, 1 }, {  64, 160,  32, 1 }, {   0,  96, 224, 1 }, {   0,  64, 128, 1 },
  {  96,   0,  96, 1 }, {   0,   0,  32, 1 }, { 128,   0, 224, 1 }, {  64,   0, 160, 1 },
  {   0,   0,  64, 1 }, {   0,   0,  32, 1 }, {  96,   0, 192, 1 }, {   0,   0,   0, 1 }
};
PALETTEENTRY* lp_now[32] = {
  lpnowA,
  lpnowB,
  lpnowC,
  lpnowD,
  lpnowE,
  lpnowF,
  lpnowG,
  lpnowH,
  lpnowI,
  lpnowJ,
  lpnowK,
  lpnowL,
  lpnowM,
  lpnowN,
  lpnowO,
  lpnowP,
  lpnowQ,
  lpnowP,
  lpnowO,
  lpnowN,
  lpnowM,
  lpnowL,
  lpnowK,
  lpnowJ,
  lpnowI,
  lpnowH,
  lpnowG,
  lpnowF,
  lpnowE,
  lpnowD,
  lpnowC,
  lpnowB
};
PALETTEENTRY lpgoodA[16] = {
  {   0,   0,   0, 1 }, {   0, 224, 224, 1 }, { 224, 224,   0, 1 }, {   0,   0, 192, 1 },
  {  64, 128,  96, 1 }, { 160, 192,  64, 1 }, { 160, 224,   0, 1 }, {   0, 192,   0, 1 },
  { 224, 160,  96, 1 }, { 192,  96,  64, 1 }, { 224, 224, 224, 1 }, { 160, 224, 224, 1 },
  {  96, 160, 224, 1 }, {  64,  64, 224, 1 }, { 128,  32, 224, 1 }, {  32,  32,  64, 1 }
};
PALETTEENTRY lpgoodB[16] = {
  {   0,   0,   0, 1 }, {   0, 224, 192, 1 }, { 224, 224,   0, 1 }, {   0,   0, 192, 1 },
  {  64,  96,  96, 1 }, { 160, 160,  64, 1 }, { 160, 192,   0, 1 }, {   0, 160,   0, 1 },
  { 224, 128,  96, 1 }, { 192,  64,  64, 1 }, { 224, 192, 224, 1 }, { 160, 192, 224, 1 },
  {  96, 128, 224, 1 }, {  64,  32, 224, 1 }, { 128,   0, 224, 1 }, {  32,   0,  64, 1 }
};
PALETTEENTRY lpgoodC[16] = {
  {   0,   0,   0, 1 }, {   0, 192, 192, 1 }, { 224, 224,   0, 1 }, {   0,   0, 192, 1 },
  {  64,  64,  96, 1 }, { 160, 128,  64, 1 }, { 160, 160,   0, 1 }, {   0, 128,   0, 1 },
  { 224,  96,  96, 1 }, { 192,  32,  64, 1 }, { 224, 160, 224, 1 }, { 160, 160, 224, 1 },
  {  96,  96, 224, 1 }, {  64,   0, 224, 1 }, { 128,   0, 224, 1 }, {  32,   0,  64, 1 }
};
PALETTEENTRY lpgoodD[16] = {
  {   0,   0,   0, 1 }, {   0, 160, 192, 1 }, { 224, 224,   0, 1 }, {   0,   0, 192, 1 },
  {  64,  32,  96, 1 }, { 160,  96,  64, 1 }, { 160, 128,   0, 1 }, {   0,  96,   0, 1 },
  { 224,  64,  96, 1 }, { 192,   0,  64, 1 }, { 224, 128, 224, 1 }, { 160, 128, 224, 1 },
  {  96,  64, 224, 1 }, {  64,   0, 224, 1 }, { 128,   0, 224, 1 }, {  32,   0,  64, 1 }
};
PALETTEENTRY lpgoodE[16] = {
  {   0,   0,   0, 1 }, {   0, 160, 160, 1 }, { 224, 224,   0, 1 }, {   0,   0, 160, 1 },
  {  96,   0,  96, 1 }, { 160,  64,  64, 1 }, { 160,  96,   0, 1 }, {   0,  64,   0, 1 },
  { 224,  32,  96, 1 }, { 160,   0,  64, 1 }, { 224,  96, 224, 1 }, { 160,  96, 224, 1 },
  {  96,  32, 224, 1 }, {  64,   0, 224, 1 }, { 128,   0, 224, 1 }, {  32,   0,  64, 1 }
};
PALETTEENTRY lpgoodF[16] = {
  {   0,   0,   0, 1 }, {   0, 128, 160, 1 }, { 224, 224,   0, 1 }, {   0,   0,  96, 1 },
  {  96,   0,  64, 1 }, { 160,  32,  32, 1 }, { 160,  96,   0, 1 }, {   0,  64,   0, 1 },
  { 224,  32,  64, 1 }, { 160,   0,  32, 1 }, { 224,  64, 192, 1 }, { 160,  64, 192, 1 },
  {  96,   0, 192, 1 }, {  64,   0, 192, 1 }, { 128,   0, 192, 1 }, {  32,   0,  32, 1 }
};
PALETTEENTRY lpgoodG[16] = {
  {   0,   0,   0, 1 }, {   0,  96, 128, 1 }, { 224, 224,   0, 1 }, {   0,   0,  64, 1 },
  {  96,   0,  32, 1 }, { 160,  32,   0, 1 }, { 160,  64,   0, 1 }, {   0,  64,   0, 1 },
  { 192,  32,  32, 1 }, { 128,   0,   0, 1 }, { 224,  32, 160, 1 }, { 160,  32, 160, 1 },
  {  96,   0, 160, 1 }, {  64,   0, 160, 1 }, { 128,   0, 160, 1 }, {  32,   0,   0, 1 }
};
PALETTEENTRY lpgoodH[16] = {
  {   0,   0,   0, 1 }, {   0,  64,  96, 1 }, { 224, 224,   0, 1 }, {   0,   0,  32, 1 },
  {  96,   0,   0, 1 }, { 128,  32,   0, 1 }, { 160,  32,   0, 1 }, {   0,  64,   0, 1 },
  { 192,  32,   0, 1 }, {  96,   0,   0, 1 }, { 224,   0, 128, 1 }, { 160,   0, 128, 1 },
  {  96,   0, 128, 1 }, {  64,   0, 128, 1 }, { 128,   0, 160, 1 }, {  32,   0,   0, 1 }
};
PALETTEENTRY lpgoodI[16] = {
  {   0,   0,   0, 1 }, {   0,  64,  96, 1 }, { 224, 224,   0, 1 }, {   0,   0,  32, 1 },
  {  96,   0,   0, 1 }, { 128,  32,   0, 1 }, { 128,  64,   0, 1 }, {   0,  64,   0, 1 },
  { 160,  32,   0, 1 }, {  96,   0,   0, 1 }, { 224,   0,  96, 1 }, { 160,   0,  96, 1 },
  {  96,   0,  96, 1 }, {  64,   0,  96, 1 }, { 128,   0, 128, 1 }, {  32,   0,   0, 1 }
};
PALETTEENTRY lpgoodJ[16] = {
  {   0,   0,   0, 1 }, {   0,  64,  96, 1 }, { 224, 224,   0, 1 }, {   0,   0,  32, 1 },
  {  32,  32,   0, 1 }, {  96,  32,   0, 1 }, {  96,  64,   0, 1 }, {   0,  64,   0, 1 },
  { 128,  32,   0, 1 }, {  64,   0,   0, 1 }, { 192,   0,  96, 1 }, { 128,   0,  96, 1 },
  {  64,   0,  96, 1 }, {  32,   0,  96, 1 }, { 128,   0,  96, 1 }, {   0,   0,   0, 1 }
};
PALETTEENTRY lpgoodK[16] = {
  {   0,   0,   0, 1 }, {   0,  64,  96, 1 }, { 224, 224,   0, 1 }, {   0,   0,  32, 1 },
  {  32,  32,   0, 1 }, {  64,  32,   0, 1 }, {  64,  96,   0, 1 }, {   0,  64,   0, 1 },
  {  96,  32,   0, 1 }, {  32,   0,   0, 1 }, { 128,  32, 128, 1 }, {  64,  32, 128, 1 },
  {  32,  32,  96, 1 }, {  32,   0,  64, 1 }, {  96,   0,  96, 1 }, {   0,   0,   0, 1 }
};
PALETTEENTRY lpgoodL[16] = {
  {   0,   0,   0, 1 }, {   0,  96,  96, 1 }, { 224, 224,   0, 1 }, {   0,   0,  32, 1 },
  {  32,  32,   0, 1 }, {  64,  32,   0, 1 }, {  64,  96,   0, 1 }, {   0,  64,   0, 1 },
  {  96,  32,   0, 1 }, {  32,   0,   0, 1 }, {  96,  64, 128, 1 }, {  32,  64, 128, 1 },
  {   0,  32,  96, 1 }, {  32,   0,  64, 1 }, {  64,   0,  64, 1 }, {   0,   0,   0, 1 }
};
PALETTEENTRY lpgoodM[16] = {
  {   0,   0,   0, 1 }, {   0, 128,  96, 1 }, { 224, 224,   0, 1 }, {   0,   0,  32, 1 },
  {   0,  32,   0, 1 }, {  64,  32,   0, 1 }, {  32,  96,   0, 1 }, {   0,  32,   0, 1 },
  {  96,  32,   0, 1 }, {  32,   0,   0, 1 }, {  64,  96, 128, 1 }, {   0,  64, 128, 1 },
  {   0,  32,  96, 1 }, {   0,   0,  64, 1 }, {  64,   0,  64, 1 }, {   0,   0,   0, 1 }
};
PALETTEENTRY lpgoodN[16] = {
  {   0,   0,   0, 1 }, {   0, 160,  96, 1 }, { 224, 224,   0, 1 }, {   0,   0,  32, 1 },
  {   0,  32,   0, 1 }, {  32,  32,   0, 1 }, {  32,  96,   0, 1 }, {   0,  32,   0, 1 },
  {  96,  32,   0, 1 }, {  32,   0,   0, 1 }, {  64,  96, 128, 1 }, {   0,  64, 128, 1 },
  {   0,  32,  96, 1 }, {   0,   0,  64, 1 }, {  32,   0,  64, 1 }, {   0,   0,   0, 1 }
};
PALETTEENTRY lpgoodO[16] = {
  {   0,   0,   0, 1 }, {   0, 192,  96, 1 }, { 224, 224,   0, 1 }, {   0,   0,  32, 1 },
  {   0,  32,   0, 1 }, {  32,  32,   0, 1 }, {  32,  96,   0, 1 }, {   0,  32,   0, 1 },
  {  96,  32,   0, 1 }, {  32,   0,   0, 1 }, {  64,  96, 128, 1 }, {   0,  64, 128, 1 },
  {   0,  32,  96, 1 }, {   0,   0,  64, 1 }, {  32,   0,  32, 1 }, {   0,   0,   0, 1 }
};
PALETTEENTRY lpgoodP[16] = {
  {   0,   0,   0, 1 }, {   0, 192,  96, 1 }, { 224, 224,   0, 1 }, {   0,   0,  32, 1 },
  {   0,  32,   0, 1 }, {  32,  32,   0, 1 }, {  32,  96,   0, 1 }, {   0,  32,   0, 1 },
  {  96,  32,   0, 1 }, {  32,   0,   0, 1 }, {  64,  96, 128, 1 }, {   0,  64, 128, 1 },
  {   0,  32,  96, 1 }, {   0,   0,  64, 1 }, {  32,   0,  32, 1 }, {   0,   0,   0, 1 }
};
PALETTEENTRY lpgoodQ[16] = {
  {   0,   0,   0, 1 }, {   0, 224,  96, 1 }, { 224, 224,   0, 1 }, {   0,   0,  32, 1 },
  {   0,  32,   0, 1 }, {  32,  32,   0, 1 }, {  32,  96,   0, 1 }, {   0,  32,   0, 1 },
  {  96,  32,   0, 1 }, {  32,   0,   0, 1 }, {  64,  96, 128, 1 }, {   0,  64, 128, 1 },
  {   0,  32,  96, 1 }, {   0,   0,  64, 1 }, {  32,   0,  32, 1 }, {   0,   0,   0, 1 }
};
PALETTEENTRY* lp_good[32] = {
  lpgoodA,
  lpgoodB,
  lpgoodC,
  lpgoodD,
  lpgoodE,
  lpgoodF,
  lpgoodG,
  lpgoodH,
  lpgoodI,
  lpgoodJ,
  lpgoodK,
  lpgoodL,
  lpgoodM,
  lpgoodN,
  lpgoodO,
  lpgoodP,
  lpgoodQ,
  lpgoodP,
  lpgoodO,
  lpgoodN,
  lpgoodM,
  lpgoodL,
  lpgoodK,
  lpgoodJ,
  lpgoodI,
  lpgoodH,
  lpgoodG,
  lpgoodF,
  lpgoodE,
  lpgoodD,
  lpgoodC,
  lpgoodB
};
PALETTEENTRY lpbadA[16] = {
  {   0,   0,   0, 1 }, { 160, 160,  64, 1 }, { 128, 128,  32, 1 }, {  64,  64,  32, 1 },
  {  96,  32,  64, 1 }, { 160,  64,  64, 1 }, { 192,  32,  96, 1 }, {  96,   0,  96, 1 },
  {  96, 128, 160, 1 }, {  32,  96,  96, 1 }, { 160, 160, 128, 1 }, {  96, 128,  96, 1 },
  {  96,  64,  64, 1 }, {  64,  32,  64, 1 }, { 160,  96,  64, 1 }, {   0,  32,  32, 1 }
};
PALETTEENTRY lpbadB[16] = {
  {   0,   0,   0, 1 }, { 160, 160,  32, 1 }, { 128, 128,   0, 1 }, {  64,  64,   0, 1 },
  {  96,  32,  32, 1 }, { 160,  64,  32, 1 }, { 192,  32,  64, 1 }, {  96,   0,  64, 1 },
  {  96, 128, 128, 1 }, {  32,  96,  64, 1 }, { 160, 160,  96, 1 }, {  96, 128,  64, 1 },
  {  96,  64,  32, 1 }, {  64,  32,  32, 1 }, { 160,  96,  32, 1 }, {   0,  32,   0, 1 }
};
PALETTEENTRY lpbadC[16] = {
  {   0,   0,   0, 1 }, { 160, 128,  32, 1 }, { 128,  96,  32, 1 }, {  64,  32,   0, 1 },
  {  96,   0,  32, 1 }, { 160,  32,  32, 1 }, { 192,   0,  64, 1 }, {  96,   0,  64, 1 },
  {  96,  96, 128, 1 }, {  32,  64,  64, 1 }, { 160, 128,  96, 1 }, {  96,  96,  64, 1 },
  {  96,  32,  32, 1 }, {  64,   0,  32, 1 }, { 160,  64,  32, 1 }, {   0,   0,   0, 1 }
};
PALETTEENTRY lpbadD[16] = {
  {   0,   0,   0, 1 }, { 160, 128,   0, 1 }, { 128,  96,   0, 1 }, {  64,  32,   0, 1 },
  {  96,   0,   0, 1 }, { 160,  32,   0, 1 }, { 192,   0,  32, 1 }, {  96,   0,  32, 1 },
  {  96,  96,  96, 1 }, {  32,  64,  32, 1 }, { 160, 128,  64, 1 }, {  96,  96,  32, 1 },
  {  96,  32,   0, 1 }, {  64,   0,   0, 1 }, { 160,  64,   0, 1 }, {   0,   0,   0, 1 }
};
PALETTEENTRY lpbadE[16] = {
  {   0,   0,   0, 1 }, { 160, 128,   0, 1 }, {  96,  96,   0, 1 }, {  64,   0,  32, 1 },
  {  96,   0,   0, 1 }, { 160,  32,   0, 1 }, { 192,   0,  32, 1 }, {  96,   0,  32, 1 },
  {  96,  64,  96, 1 }, {  32,  32,  32, 1 }, { 160,  96,  64, 1 }, {  96,  64,  32, 1 },
  {  96,   0,   0, 1 }, {  64,   0,   0, 1 }, { 160,  64,   0, 1 }, {   0,   0,   0, 1 }
};
PALETTEENTRY lpbadF[16] = {
  {   0,   0,   0, 1 }, { 128, 128,   0, 1 }, {  64,  96,   0, 1 }, {  64,   0,  32, 1 },
  {  96,   0,   0, 1 }, {  96,  32,   0, 1 }, { 192,   0,   0, 1 }, {  96,   0,   0, 1 },
  {  96,  32,  96, 1 }, {  32,  32,   0, 1 }, { 160,  64,  64, 1 }, {  96,  32,  32, 1 },
  {  96,   0,   0, 1 }, {  64,   0,   0, 1 }, { 160,  64,   0, 1 }, {   0,   0,   0, 1 }
};
PALETTEENTRY lpbadG[16] = {
  {   0,   0,   0, 1 }, { 128, 128,   0, 1 }, {  64,  96,   0, 1 }, {  32,   0,  32, 1 },
  {  64,   0,   0, 1 }, {  64,  32,   0, 1 }, { 160,   0,   0, 1 }, {  96,   0,   0, 1 },
  {  96,  32,  64, 1 }, {  32,  32,   0, 1 }, { 128,  64,  64, 1 }, {  96,   0,  32, 1 },
  {  64,   0,   0, 1 }, {  32,   0,   0, 1 }, { 160,  64,   0, 1 }, {   0,   0,   0, 1 }
};
PALETTEENTRY lpbadH[16] = {
  {   0,   0,   0, 1 }, { 128, 128,   0, 1 }, {  64,  96,   0, 1 }, {  32,   0,  32, 1 },
  {  32,   0,   0, 1 }, {  32,  32,   0, 1 }, { 128,   0,   0, 1 }, {  64,   0,   0, 1 },
  {  64,  32,  64, 1 }, {  32,  32,   0, 1 }, { 128,  32,  64, 1 }, {  64,   0,  32, 1 },
  {  32,   0,   0, 1 }, {   0,   0,   0, 1 }, { 160,  64,   0, 1 }, {   0,   0,   0, 1 }
};
PALETTEENTRY lpbadI[16] = {
  {   0,   0,   0, 1 }, { 128, 128,   0, 1 }, {  64,  96,   0, 1 }, {  32,   0,  32, 1 },
  {   0,  32,   0, 1 }, {  32,  32,   0, 1 }, { 128,   0,   0, 1 }, {  64,   0,   0, 1 },
  {  64,  32,  64, 1 }, {  32,  32,   0, 1 }, { 128,   0,  64, 1 }, {  64,   0,  32, 1 },
  {  32,   0,   0, 1 }, {   0,   0,   0, 1 }, { 160,  64,   0, 1 }, {   0,   0,   0, 1 }
};
PALETTEENTRY lpbadJ[16] = {
  {   0,   0,   0, 1 }, { 128, 128,   0, 1 }, {  64,  96,   0, 1 }, {  32,   0,  32, 1 },
  {   0,  32,   0, 1 }, {  32,  32,   0, 1 }, { 128,   0,   0, 1 }, {  64,   0,   0, 1 },
  {  64,   0,  64, 1 }, {  32,  32,   0, 1 }, {  96,   0,  64, 1 }, {  64,   0,  32, 1 },
  {  32,   0,   0, 1 }, {   0,   0,   0, 1 }, { 160,  64,   0, 1 }, {   0,   0,   0, 1 }
};
PALETTEENTRY lpbadK[16] = {
  {   0,   0,   0, 1 }, { 128, 128,   0, 1 }, {  64,  96,   0, 1 }, {  32,   0,  32, 1 },
  {   0,  32,   0, 1 }, {  32,  32,   0, 1 }, { 128,   0,   0, 1 }, {  64,   0,   0, 1 },
  {  32,   0,  64, 1 }, {  32,  32,   0, 1 }, {  64,   0,  64, 1 }, {  64,   0,  32, 1 },
  {  32,   0,   0, 1 }, {   0,   0,   0, 1 }, { 160,  64,   0, 1 }, {   0,   0,   0, 1 }
};
PALETTEENTRY lpbadL[16] = {
  {   0,   0,   0, 1 }, { 128, 128,   0, 1 }, {  64,  64,   0, 1 }, {   0,   0,  32, 1 },
  {   0,  32,   0, 1 }, {  32,  32,   0, 1 }, { 128,   0,   0, 1 }, {  64,   0,   0, 1 },
  {  32,   0,  64, 1 }, {  32,  32,   0, 1 }, {  64,   0,  64, 1 }, {  64,   0,  32, 1 },
  {  32,   0,   0, 1 }, {   0,   0,   0, 1 }, { 160,  64,   0, 1 }, {   0,   0,   0, 1 }
};
PALETTEENTRY lpbadM[16] = {
  {   0,   0,   0, 1 }, { 128, 128,   0, 1 }, {  64,  64,   0, 1 }, {   0,   0,  32, 1 },
  {   0,  32,   0, 1 }, {  32,  32,   0, 1 }, { 128,   0,   0, 1 }, {  64,   0,   0, 1 },
  {  32,   0,  64, 1 }, {  32,  32,   0, 1 }, {  64,   0,  64, 1 }, {  32,   0,  32, 1 },
  {  32,   0,   0, 1 }, {   0,   0,   0, 1 }, { 160,  64,   0, 1 }, {   0,   0,   0, 1 }
};
PALETTEENTRY lpbadN[16] = {
  {   0,   0,   0, 1 }, { 128, 128,   0, 1 }, {  64,  64,   0, 1 }, {   0,   0,  32, 1 },
  {   0,  32,   0, 1 }, {  32,  32,   0, 1 }, { 128,   0,   0, 1 }, {  64,   0,   0, 1 },
  {  32,   0,  64, 1 }, {  32,  32,   0, 1 }, {  64,   0,  64, 1 }, {  32,   0,  32, 1 },
  {  32,   0,   0, 1 }, {   0,   0,   0, 1 }, { 160,  64,   0, 1 }, {   0,   0,   0, 1 }
};
PALETTEENTRY lpbadO[16] = {
  {   0,   0,   0, 1 }, { 128, 128,   0, 1 }, {  64,  64,   0, 1 }, {   0,   0,  32, 1 },
  {   0,  32,   0, 1 }, {  32,  32,   0, 1 }, { 128,   0,   0, 1 }, {  64,   0,   0, 1 },
  {  32,   0,  64, 1 }, {  32,  32,   0, 1 }, {   0,  64,   0, 1 }, {  32,   0,  32, 1 },
  {  32,   0,   0, 1 }, {   0,   0,   0, 1 }, { 160,  64,   0, 1 }, {   0,   0,   0, 1 }
};
PALETTEENTRY lpbadP[16] = {
  {   0,   0,   0, 1 }, { 128, 128,   0, 1 }, {  64,  64,   0, 1 }, {   0,   0,  32, 1 },
  {   0,  32,   0, 1 }, {  32,  32,   0, 1 }, { 128,   0,   0, 1 }, {  64,   0,   0, 1 },
  {  32,   0,  64, 1 }, {  32,  32,   0, 1 }, {   0,  64,   0, 1 }, {  32,   0,  32, 1 },
  {  32,   0,   0, 1 }, {   0,   0,   0, 1 }, { 160,  64,   0, 1 }, {   0,   0,   0, 1 }
};
PALETTEENTRY lpbadQ[16] = {
  {   0,   0,   0, 1 }, { 128, 128,   0, 1 }, {  64,  64,   0, 1 }, {   0,   0,  32, 1 },
  {   0,  32,   0, 1 }, {  32,  32,   0, 1 }, { 128,   0,   0, 1 }, {  64,   0,   0, 1 },
  {  32,   0,  64, 1 }, {  32,  32,   0, 1 }, {   0,  64,   0, 1 }, {  32,   0,  32, 1 },
  {  32,   0,   0, 1 }, {   0,   0,   0, 1 }, { 160,  64,   0, 1 }, {   0,   0,   0, 1 }
};
PALETTEENTRY* lp_bad[32] = {
  lpbadA,
  lpbadB,
  lpbadC,
  lpbadD,
  lpbadE,
  lpbadF,
  lpbadG,
  lpbadH,
  lpbadI,
  lpbadJ,
  lpbadK,
  lpbadL,
  lpbadM,
  lpbadN,
  lpbadO,
  lpbadP,
  lpbadQ,
  lpbadP,
  lpbadO,
  lpbadN,
  lpbadM,
  lpbadL,
  lpbadK,
  lpbadJ,
  lpbadI,
  lpbadH,
  lpbadG,
  lpbadF,
  lpbadE,
  lpbadD,
  lpbadC,
  lpbadB
};
PALETTEENTRY lpbsgoodA[16] = {
  {   0,   0,   0, 1 }, {  96, 128, 224, 1 }, { 128, 160, 224, 1 }, { 160, 192, 224, 1 },
  { 192, 192, 224, 1 }, {  64,  96, 224, 1 }, {  64,  96, 224, 1 }, {  64,  96, 224, 1 },
  {  64,  96, 224, 1 }, { 192, 192, 224, 1 }, { 192, 192, 224, 1 }, { 192, 192, 224, 1 },
  { 192, 192, 224, 1 }, {  64,  96, 224, 1 }, { 240, 240, 240, 1 }, { 240, 240, 240, 1 }
};
PALETTEENTRY lpbsgoodB[16] = {
  {   0,   0,   0, 1 }, {  96,  96, 224, 1 }, { 128, 128, 224, 1 }, { 160, 160, 224, 1 },
  { 192, 160, 224, 1 }, {  64,  64, 224, 1 }, {  64,  64, 224, 1 }, {  64,  64, 224, 1 },
  {  64,  64, 224, 1 }, { 224, 160, 224, 1 }, { 192, 160, 224, 1 }, { 192, 160, 224, 1 },
  { 192, 160, 224, 1 }, {  64,  64, 224, 1 }, { 240, 240, 240, 1 }, { 240, 240, 240, 1 }
};
PALETTEENTRY lpbsgoodC[16] = {
  {   0,   0,   0, 1 }, {  96,  64, 224, 1 }, { 128,  96, 224, 1 }, { 160, 128, 224, 1 },
  { 192, 128, 224, 1 }, {  64,  32, 224, 1 }, {  64,  32, 224, 1 }, {  64,  32, 224, 1 },
  {  64,  32, 224, 1 }, { 192, 128, 224, 1 }, { 192, 128, 224, 1 }, { 192, 128, 224, 1 },
  { 192, 128, 224, 1 }, {  64,  32, 224, 1 }, { 240, 240, 240, 1 }, { 240, 240, 240, 1 }
};
PALETTEENTRY lpbsgoodD[16] = {
  {   0,   0,   0, 1 }, {  96,  32, 224, 1 }, { 128,  64, 224, 1 }, { 160,  96, 224, 1 },
  { 192,  96, 224, 1 }, {  64,   0, 224, 1 }, {  64,   0, 224, 1 }, {  64,   0, 224, 1 },
  {  64,   0, 224, 1 }, { 192,  96, 224, 1 }, { 192,  96, 224, 1 }, { 192,  96, 224, 1 },
  { 192,  96, 224, 1 }, {  64,   0, 224, 1 }, { 240, 240, 240, 1 }, { 240, 240, 240, 1 }
};
PALETTEENTRY lpbsgoodE[16] = {
  {   0,   0,   0, 1 }, {  96,  32, 192, 1 }, { 128,  64, 192, 1 }, { 160,  96, 192, 1 },
  { 192,  96, 192, 1 }, {  64,   0, 192, 1 }, {  64,   0, 192, 1 }, {  64,   0, 192, 1 },
  {   0, 160, 224, 1 }, { 192,  96, 192, 1 }, { 192,  96, 192, 1 }, { 192,  96, 192, 1 },
  {   0, 160, 224, 1 }, {  64,   0, 192, 1 }, { 240, 240, 240, 1 }, { 240, 240, 240, 1 }
};
PALETTEENTRY lpbsgoodF[16] = {
  {   0,   0,   0, 1 }, {  96,   0, 192, 1 }, { 128,  64, 192, 1 }, { 160,  64, 192, 1 },
  { 192,  64, 192, 1 }, {  64,   0, 192, 1 }, {  64,   0, 192, 1 }, {  64,   0, 192, 1 },
  {   0, 160, 224, 1 }, { 192,  64, 192, 1 }, { 192,  64, 192, 1 }, { 192,  64, 192, 1 },
  {   0, 160, 224, 1 }, {  64,   0, 192, 1 }, { 240, 240, 240, 1 }, { 240, 240, 240, 1 }
};
PALETTEENTRY lpbsgoodG[16] = {
  {   0,   0,   0, 1 }, {  96,   0, 160, 1 }, { 128,   0, 160, 1 }, { 160,   0, 160, 1 },
  { 192,   0, 160, 1 }, {  64,   0, 160, 1 }, {  64,   0, 160, 1 }, {  64,   0, 160, 1 },
  {   0, 160, 224, 1 }, { 192,  32, 160, 1 }, { 192,  32, 160, 1 }, { 192,  32, 160, 1 },
  {   0, 160, 224, 1 }, {  64,   0, 160, 1 }, { 240, 240, 240, 1 }, { 240, 240, 240, 1 }
};
PALETTEENTRY lpbsgoodH[16] = {
  {   0,   0,   0, 1 }, {  96,   0, 128, 1 }, { 128,   0, 128, 1 }, { 160,   0, 128, 1 },
  { 192,   0, 128, 1 }, {  64,   0, 128, 1 }, {  64,   0, 128, 1 }, {   0,  64, 224, 1 },
  {   0, 160, 224, 1 }, { 192,   0, 128, 1 }, { 192,   0, 128, 1 }, {   0,  96, 224, 1 },
  {   0, 160, 224, 1 }, {  64,   0, 128, 1 }, { 240, 240, 240, 1 }, { 240, 240, 240, 1 }
};
PALETTEENTRY lpbsgoodI[16] = {
  {   0,   0,   0, 1 }, {  64,   0, 128, 1 }, {  96,   0, 128, 1 }, { 128,   0, 128, 1 },
  { 160,   0, 128, 1 }, {  32,   0, 128, 1 }, {  32,   0, 128, 1 }, {   0,  64, 224, 1 },
  {   0, 160, 224, 1 }, { 160,   0, 128, 1 }, { 160,   0, 128, 1 }, {   0,  96, 224, 1 },
  {   0, 160, 224, 1 }, {  32,   0, 128, 1 }, { 240, 240, 240, 1 }, { 240, 240, 240, 1 }
};
PALETTEENTRY lpbsgoodJ[16] = {
  {   0,   0,   0, 1 }, {  32,   0, 128, 1 }, {  64,   0, 128, 1 }, {  96,   0, 128, 1 },
  { 128,   0, 128, 1 }, {   0,   0, 128, 1 }, {   0,   0, 128, 1 }, {   0,  64, 224, 1 },
  {   0, 160, 224, 1 }, { 128,   0, 128, 1 }, { 128,   0, 128, 1 }, {   0,  96, 224, 1 },
  {   0, 160, 224, 1 }, {   0,   0, 128, 1 }, { 240, 240, 240, 1 }, { 240, 240, 240, 1 }
};
PALETTEENTRY lpbsgoodK[16] = {
  {   0,   0,   0, 1 }, {   0,   0, 128, 1 }, {  32,   0, 128, 1 }, {  64,   0, 128, 1 },
  {  96,   0, 128, 1 }, {   0,   0, 128, 1 }, {   0,  64, 224, 1 }, {   0, 160, 224, 1 },
  { 224, 224, 224, 1 }, {  96,   0, 128, 1 }, {   0,  96, 224, 1 }, {   0, 160, 224, 1 },
  { 224, 224, 224, 1 }, {   0,   0, 128, 1 }, { 240, 240, 240, 1 }, { 240, 240, 240, 1 }
};
PALETTEENTRY lpbsgoodL[16] = {
  {   0,   0,   0, 1 }, {   0,   0, 128, 1 }, {   0,   0, 128, 1 }, {  32,   0, 128, 1 },
  {  64,   0, 128, 1 }, {   0,   0, 128, 1 }, {   0,  64, 224, 1 }, {   0, 160, 224, 1 },
  { 224, 224, 224, 1 }, {   0,   0, 128, 1 }, {   0,  64, 224, 1 }, {   0, 160, 224, 1 },
  { 224, 224, 224, 1 }, {   0,   0, 128, 1 }, { 240, 240, 240, 1 }, { 240, 240, 240, 1 }
};
PALETTEENTRY lpbsgoodM[16] = {
  {   0,   0,   0, 1 }, {   0,   0, 128, 1 }, {   0,   0, 128, 1 }, {   0,   0, 128, 1 },
  {  32,   0, 128, 1 }, {   0,   0, 128, 1 }, {   0,  64, 224, 1 }, {   0, 160, 224, 1 },
  { 224, 224, 224, 1 }, {   0,   0, 128, 1 }, {   0,  64, 224, 1 }, {   0, 160, 224, 1 },
  { 224, 224, 224, 1 }, {   0,   0, 128, 1 }, { 240, 240, 240, 1 }, { 240, 240, 240, 1 }
};
PALETTEENTRY lpbsgoodN[16] = {
  {   0,   0,   0, 1 }, {   0,   0,  96, 1 }, {   0,   0,  96, 1 }, {   0,   0,  96, 1 },
  {   0,   0,  96, 1 }, {   0,   0, 128, 1 }, {   0,  64, 224, 1 }, {   0, 160, 224, 1 },
  { 224, 224, 224, 1 }, {   0,   0, 128, 1 }, {   0,  64, 224, 1 }, {   0, 160, 224, 1 },
  { 224, 224, 224, 1 }, {   0,   0,  96, 1 }, { 240, 240, 240, 1 }, { 240, 240, 240, 1 }
};
PALETTEENTRY lpbsgoodO[16] = {
  {   0,   0,   0, 1 }, {   0,   0,  64, 1 }, {   0,   0,  64, 1 }, {   0,   0,  64, 1 },
  {   0,   0,  64, 1 }, {   0,   0, 128, 1 }, {   0,  64, 224, 1 }, {   0, 160, 224, 1 },
  { 224, 224, 224, 1 }, {   0,   0, 128, 1 }, {   0,  64, 224, 1 }, {   0, 160, 224, 1 },
  { 224, 224, 224, 1 }, {   0,   0,  64, 1 }, { 240, 240, 240, 1 }, { 240, 240, 240, 1 }
};
PALETTEENTRY lpbsgoodP[16] = {
  {   0,   0,   0, 1 }, {   0,   0,  32, 1 }, {   0,   0,  32, 1 }, {   0,   0,  32, 1 },
  {   0,   0,  32, 1 }, {   0,   0, 128, 1 }, {   0,  64, 224, 1 }, {   0, 160, 224, 1 },
  { 224, 224, 224, 1 }, {   0,   0, 128, 1 }, {   0,  64, 224, 1 }, {   0, 160, 224, 1 },
  { 224, 224, 224, 1 }, {   0,   0,  32, 1 }, { 240, 240, 240, 1 }, { 240, 240, 240, 1 }
};
PALETTEENTRY lpbsgoodQ[16] = {
  {   0,   0,   0, 1 }, {   0,   0,   0, 1 }, {   0,   0,   0, 1 }, {   0,   0,   0, 1 },
  {   0,   0,   0, 1 }, {   0,   0, 128, 1 }, {   0,  64, 224, 1 }, {   0, 160, 224, 1 },
  { 224, 224, 224, 1 }, {   0,   0, 128, 1 }, {   0,  64, 224, 1 }, {   0, 160, 224, 1 },
  { 224, 224, 224, 1 }, {   0,   0,   0, 1 }, { 240, 240, 240, 1 }, { 240, 240, 240, 1 }
};
PALETTEENTRY* lpbs_good[32] = {
  lpbsgoodA,
  lpbsgoodB,
  lpbsgoodC,
  lpbsgoodD,
  lpbsgoodE,
  lpbsgoodF,
  lpbsgoodG,
  lpbsgoodH,
  lpbsgoodI,
  lpbsgoodJ,
  lpbsgoodK,
  lpbsgoodL,
  lpbsgoodM,
  lpbsgoodN,
  lpbsgoodO,
  lpbsgoodP,
  lpbsgoodQ,
  lpbsgoodP,
  lpbsgoodO,
  lpbsgoodN,
  lpbsgoodM,
  lpbsgoodL,
  lpbsgoodK,
  lpbsgoodJ,
  lpbsgoodI,
  lpbsgoodH,
  lpbsgoodG,
  lpbsgoodF,
  lpbsgoodE,
  lpbsgoodD,
  lpbsgoodC,
  lpbsgoodB
};
PALETTEENTRY lpbsbadA[16] = {
  {   0,   0,   0, 1 }, { 192, 160,   0, 1 }, { 160, 128,   0, 1 }, { 128,  96,   0, 1 },
  {  96,  64,   0, 1 }, { 160, 128,   0, 1 }, { 160, 128,   0, 1 }, { 160, 128,   0, 1 },
  { 160, 128,   0, 1 }, {  96,  64,   0, 1 }, {  96,  64,   0, 1 }, {  96,  64,   0, 1 },
  {  96,  64,   0, 1 }, { 160, 128,   0, 1 }, { 240, 240, 240, 1 }, { 240, 240, 240, 1 }
};
PALETTEENTRY lpbsbadB[16] = {
  {   0,   0,   0, 1 }, { 192, 128,   0, 1 }, { 160,  96,   0, 1 }, { 128,  64,   0, 1 },
  { 128,  32,   0, 1 }, { 160,  96,   0, 1 }, { 160,  96,   0, 1 }, { 160,  96,   0, 1 },
  { 160,  96,   0, 1 }, {  96,  32,   0, 1 }, {  96,  32,   0, 1 }, {  96,  32,   0, 1 },
  {  96,  32,   0, 1 }, { 160,  96,   0, 1 }, { 240, 240, 240, 1 }, { 240, 240, 240, 1 }
};
PALETTEENTRY lpbsbadC[16] = {
  {   0,   0,   0, 1 }, { 192,  96,   0, 1 }, { 160,  64,   0, 1 }, { 128,  32,   0, 1 },
  {  96,   0,   0, 1 }, { 160,  64,   0, 1 }, { 160,  64,   0, 1 }, { 160,  64,   0, 1 },
  { 160,  64,   0, 1 }, {  96,   0,   0, 1 }, {  96,   0,   0, 1 }, {  96,   0,   0, 1 },
  {  96,   0,   0, 1 }, { 160,  64,   0, 1 }, { 240, 240, 240, 1 }, { 240, 240, 240, 1 }
};
PALETTEENTRY lpbsbadD[16] = {
  {   0,   0,   0, 1 }, { 192,  64,   0, 1 }, { 160,  32,   0, 1 }, { 128,   0,   0, 1 },
  {  96,   0,   0, 1 }, { 160,  32,   0, 1 }, { 160,  32,   0, 1 }, { 160,  32,   0, 1 },
  { 160,  32,   0, 1 }, {  96,   0,   0, 1 }, {  96,   0,   0, 1 }, {  96,   0,   0, 1 },
  {  96,   0,   0, 1 }, { 160,  32,   0, 1 }, { 240, 240, 240, 1 }, { 240, 240, 240, 1 }
};
PALETTEENTRY lpbsbadE[16] = {
  {   0,   0,   0, 1 }, { 192,  32,   0, 1 }, { 160,   0,   0, 1 }, { 128,   0,   0, 1 },
  {  96,   0,   0, 1 }, { 160,   0,   0, 1 }, { 160,   0,   0, 1 }, { 160,   0,   0, 1 },
  { 160,   0,   0, 1 }, {  96,   0,   0, 1 }, {  96,   0,   0, 1 }, {  96,   0,   0, 1 },
  {  96,   0,   0, 1 }, { 160,   0,   0, 1 }, { 240, 240, 240, 1 }, { 240, 240, 240, 1 }
};
PALETTEENTRY lpbsbadF[16] = {
  {   0,   0,   0, 1 }, { 192,   0,   0, 1 }, { 160,   0,   0, 1 }, { 128,   0,   0, 1 },
  {  96,   0,   0, 1 }, { 160,   0,   0, 1 }, { 160,   0,   0, 1 }, { 160,   0,   0, 1 },
  { 160,   0,   0, 1 }, {  96,   0,   0, 1 }, {  96,   0,   0, 1 }, {  96,   0,   0, 1 },
  {  96,   0,   0, 1 }, { 160,   0,   0, 1 }, { 240, 240, 240, 1 }, { 240, 240, 240, 1 }
};
PALETTEENTRY lpbsbadG[16] = {
  {   0,   0,   0, 1 }, { 160,   0,   0, 1 }, { 128,   0,   0, 1 }, {  96,   0,   0, 1 },
  {  64,   0,   0, 1 }, { 128,   0,   0, 1 }, { 128,   0,   0, 1 }, { 128,   0,   0, 1 },
  { 128,   0,   0, 1 }, {  64,   0,   0, 1 }, {  64,   0,   0, 1 }, {  64,   0,   0, 1 },
  {  64,   0,   0, 1 }, { 128,   0,   0, 1 }, { 240, 240, 240, 1 }, { 240, 240, 240, 1 }
};
PALETTEENTRY lpbsbadH[16] = {
  {   0,   0,   0, 1 }, { 128,   0,   0, 1 }, {  96,   0,   0, 1 }, {  64,   0,   0, 1 },
  {  32,   0,   0, 1 }, {  96,   0,   0, 1 }, {  96,   0,   0, 1 }, {  96,   0,   0, 1 },
  {  96,   0,   0, 1 }, {  32,   0,   0, 1 }, {  32,   0,   0, 1 }, {  32,   0,   0, 1 },
  {  32,   0,   0, 1 }, {  96,   0,   0, 1 }, { 240, 240, 240, 1 }, { 240, 240, 240, 1 }
};
PALETTEENTRY lpbsbadI[16] = {
  {   0,   0,   0, 1 }, {  96,   0,   0, 1 }, {  64,   0,   0, 1 }, {  32,   0,   0, 1 },
  {   0,   0,   0, 1 }, {  64,   0,   0, 1 }, {  64,   0,   0, 1 }, {  64,   0,   0, 1 },
  {  64,   0,   0, 1 }, {   0,   0,   0, 1 }, {   0,   0,   0, 1 }, {   0,   0,   0, 1 },
  {   0,   0,   0, 1 }, {  64,   0,   0, 1 }, { 240, 240, 240, 1 }, { 240, 240, 240, 1 }
};
PALETTEENTRY lpbsbadJ[16] = {
  {   0,   0,   0, 1 }, {  96,   0,   0, 1 }, {  64,   0,   0, 1 }, {  32,   0,   0, 1 },
  {   0,   0,   0, 1 }, {  64,   0,   0, 1 }, {  64,   0,   0, 1 }, {  64,   0,   0, 1 },
  { 192,   0,   0, 1 }, {   0,   0,   0, 1 }, {   0,   0,   0, 1 }, {   0,   0,   0, 1 },
  {   0,   0,   0, 1 }, {  64,   0,   0, 1 }, { 240, 240, 240, 1 }, { 240, 240, 240, 1 }
};
PALETTEENTRY lpbsbadK[16] = {
  {   0,   0,   0, 1 }, {  96,   0,   0, 1 }, {  64,   0,   0, 1 }, {  32,   0,   0, 1 },
  {   0,   0,   0, 1 }, {  64,   0,   0, 1 }, {  64,   0,   0, 1 }, { 128,   0,   0, 1 },
  { 224,   0,   0, 1 }, {   0,   0,   0, 1 }, {   0,   0,   0, 1 }, {   0,   0,   0, 1 },
  { 192,   0,   0, 1 }, {  64,   0,   0, 1 }, { 240, 240, 240, 1 }, { 240, 240, 240, 1 }
};
PALETTEENTRY lpbsbadL[16] = {
  {   0,   0,   0, 1 }, {  96,   0,   0, 1 }, {  64,   0,   0, 1 }, {  32,   0,   0, 1 },
  {   0,   0,   0, 1 }, {  64,   0,   0, 1 }, {  64,   0,   0, 1 }, { 128,   0,   0, 1 },
  { 224,   0,   0, 1 }, {   0,   0,   0, 1 }, {   0,   0,   0, 1 }, {  64,   0,   0, 1 },
  { 192,   0,   0, 1 }, {  32,   0,   0, 1 }, { 240, 240, 240, 1 }, { 240, 240, 240, 1 }
};
PALETTEENTRY lpbsbadM[16] = {
  {   0,   0,   0, 1 }, {  64,   0,   0, 1 }, {  32,   0,   0, 1 }, {   0,   0,   0, 1 },
  {   0,   0,   0, 1 }, {  64,   0,   0, 1 }, {  96,   0,   0, 1 }, { 160,   0,   0, 1 },
  { 224,  96,   0, 1 }, {   0,   0,   0, 1 }, {  64,   0,   0, 1 }, {  96,   0,   0, 1 },
  { 224,  32,   0, 1 }, {   0,   0,   0, 1 }, { 240, 240, 240, 1 }, { 240, 240, 240, 1 }
};
PALETTEENTRY lpbsbadN[16] = {
  {   0,   0,   0, 1 }, {  32,   0,   0, 1 }, {  32,   0,   0, 1 }, {   0,   0,   0, 1 },
  {   0,   0,   0, 1 }, {  64,   0,   0, 1 }, {  96,   0,   0, 1 }, { 160,   0,   0, 1 },
  { 224,   0,   0, 1 }, {  64,   0,   0, 1 }, {  96,   0,   0, 1 }, { 160,   0,   0, 1 },
  { 224, 128,   0, 1 }, {   0,   0,   0, 1 }, { 240, 240, 240, 1 }, { 240, 240, 240, 1 }
};
PALETTEENTRY lpbsbadO[16] = {
  {   0,   0,   0, 1 }, {  32,   0,   0, 1 }, {   0,   0,   0, 1 }, {   0,   0,   0, 1 },
  {   0,   0,   0, 1 }, {  64,   0,   0, 1 }, {  96,   0,   0, 1 }, { 224,   0,   0, 1 },
  { 224, 160,   0, 1 }, {  64,   0,   0, 1 }, {  96,   0,   0, 1 }, { 224,   0,   0, 1 },
  { 224, 160,   0, 1 }, {   0,   0,   0, 1 }, { 240, 240, 240, 1 }, { 240, 240, 240, 1 }
};
PALETTEENTRY lpbsbadP[16] = {
  {   0,   0,   0, 1 }, {  32,   0,   0, 1 }, {   0,   0,   0, 1 }, {   0,   0,   0, 1 },
  {   0,   0,   0, 1 }, {  64,   0,   0, 1 }, {  96,   0,   0, 1 }, { 224,   0,   0, 1 },
  { 224, 224,   0, 1 }, {  64,   0,   0, 1 }, {  96,   0,   0, 1 }, { 224,   0,   0, 1 },
  { 224, 224,   0, 1 }, {   0,   0,   0, 1 }, { 240, 240, 240, 1 }, { 240, 240, 240, 1 }
};
PALETTEENTRY lpbsbadQ[16] = {
  {   0,   0,   0, 1 }, {  32,   0,   0, 1 }, {   0,   0,   0, 1 }, {   0,   0,   0, 1 },
  {   0,   0,   0, 1 }, {  96,   0,   0, 1 }, { 128,   0,   0, 1 }, { 224,  64,   0, 1 },
  { 224, 224,   0, 1 }, {  96,   0,   0, 1 }, { 128,   0,   0, 1 }, { 224,  64,   0, 1 },
  { 224, 224,   0, 1 }, {   0,   0,   0, 1 }, { 240, 240, 240, 1 }, { 240, 240, 240, 1 }
};
PALETTEENTRY* lpbs_bad[32] = {
  lpbsbadA,
  lpbsbadB,
  lpbsbadC,
  lpbsbadD,
  lpbsbadE,
  lpbsbadF,
  lpbsbadG,
  lpbsbadH,
  lpbsbadI,
  lpbsbadJ,
  lpbsbadK,
  lpbsbadL,
  lpbsbadM,
  lpbsbadN,
  lpbsbadO,
  lpbsbadP,
  lpbsbadQ,
  lpbsbadP,
  lpbsbadO,
  lpbsbadN,
  lpbsbadM,
  lpbsbadL,
  lpbsbadK,
  lpbsbadJ,
  lpbsbadI,
  lpbsbadH,
  lpbsbadG,
  lpbsbadF,
  lpbsbadE,
  lpbsbadD,
  lpbsbadC,
  lpbsbadB
};
PALETTEENTRY** lp_coltbl[6] = {
  lp_now,
  lpbs_good,
  lp_good,
  lpbs_good,
  lp_bad,
  lpbs_bad
};
short lpbs_timer[32] = {
  780, 4, 6, 8,
  120, 6, 8,
  130, 6, 8,
  140, 6, 8,
  150, 6, 8,
  780, 4, 6, 8,
  120, 6, 8,
  130, 6, 8,
  140, 6, 8,
  150, 6, 8
};
